'''
Created on 16.12.2011

@author: cwestphal
'''
import maya.cmds as cmds

def align ():
    
    #Align Pivot orientation
    
    sel = cmds.ls (sl = True)
    
    driver = sel[0]
    driven = sel[1]

    cmds.parent (driven, driver)

    cmds.makeIdentity(driven, apply = True)

    cmds.parent( '%s|%s'%(driver,driven), world=True )
    
    return sel